package com.yegs.jltqc.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.yegs.jltqc.TO.RpInComePageQuery;
import com.yegs.jltqc.TO.RpproducePageQuery;
import com.yegs.jltqc.VO.RpInCome;
import com.yegs.jltqc.VO.RpProduce;
import org.springframework.data.domain.Page;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface RpInComeService {

    @Transactional(rollbackFor = Exception.class)
    RpInCome save(RpInCome rpInCome) throws Exception;

    Long getNext(Long id);

    Long getLast(Long id);

    RpInCome get(Long id);

    void del(Long id);

    Page<RpInCome> query(RpInComePageQuery query);

    RpInCome findRpProduceByBarcode(String barcode);

    RpInCome findRpIncomeBySubBarcode(String barcode);



}
